<form method="post" action="<?php echo base_url() ?>speler/update" enctype="multipart/form-data">
    <label class="form_label" for="file">Foto</label> 
    <input class="form_file" size="10" type="file" name="file" />

    <label class="form_label" for="naam">Naam</label>
    <input class="form_input" type="text" name="naam" value="<?php echo $speler->Naam ?>" />

    <label class="form_label" for="voornaam">Voornaam</label>
    <input class="form_input" type="text" name="voornaam" value="<?php echo $speler->Voornaam ?>" />

    <label class="form_label" for="email">E-mail</label>
    <input class="form_input" type="text" name="email" value="<?php echo $speler->Email ?>" />

    <label class="form_label" for="nummer">Nummer</label>
    <input class="form_input" type="number" name="nummer" value="<?php echo $speler->Nummer ?>" />

    <label class="form_label" for="positie">Positie</label>
    <select class="form_select" name="positie">
        <option name="Aanvaller" value="Aanvaller" <?php if($speler->Positie == 'Aanvaller'){ echo 'selected="selected"';} ?>>Aanvaller</option>
        <option name="Verdediger" value="Verdediger" <?php if($speler->Positie == 'Verdediger'){ echo 'selected="selected"';} ?>>Verdediger</option>
    </select>

    <label class="form_label" for="gewicht">Gewicht</label>
    <input class="form_input" type="number" name="gewicht" value="<?php echo $speler->Gewicht ?>" />

    <label class="form_label" for="lengte">Lengte</label>
    <input class="form_input" type="number" name="lengte" value="<?php echo $speler->Lengte ?>" />

    <label class="form_label" for="geboortedatum">Geboortedatum</label>
    <input class="form_input" type="number" name="geboortedatum" value="<?php echo date_create($speler->Geboortedatum)->format('d-m-y') ?>" />

    <input type="hidden" name="id" value="<?php echo $speler->Id ?>" />
    <input type="hidden" name="inschrijving" value="<?php echo $speler->Inschrijving ?>" />

    <button class="form_button" type="submit">+</button>
</form>